package com.whfc.fse.dao;

import com.whfc.entity.dto.msg.AppMsgToUserDTO;
import com.whfc.fse.entity.FseWarnRuleUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FseWarnRuleUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FseWarnRuleUser record);

    int insertSelective(FseWarnRuleUser record);

    FseWarnRuleUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FseWarnRuleUser record);

    int updateByPrimaryKey(FseWarnRuleUser record);

    List<AppMsgToUserDTO> selectByRuleId(@Param("ruleId") Integer ruleId);

    void deleteLogicByRuleId(@Param("ruleId") Integer ruleId);

    void batchInsert(@Param("list") List<AppMsgToUserDTO> fseWarnRuleUserList);
}